<html lang="zh" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>添加员工</h1>



    <form th:action="@{/emp/do_add_emp}" method="post">
        <input type="text" name="name"> 姓名 <br>
        <select name="deptId">
            <option>---请选择---</option>
            <option th:each="d:${depts}"  th:text="${d.name}" th:value="${d.id}"></option>
        </select>
        <br>
        <input type="submit">
    </form>
</body>
</html>